<template>
  <div class="span">
    <validator name='v'>
      <!-- <form > -->
        <div class="form-horizontal" :class="[$v.f_price.required ? 'has-error' : 'has-success']">
          <label for="f_price" class="col-sm-2 control-label">单价1:</label>
          <div class="col-sm-3">
            <input class="form-control" type="number" v-model="unitmodel[0].f_price"
             v-validate:f_price='{required: true }'  placeholder="单价1">
          </div>
        </div>
      <!-- </form> -->
    </validator>
  </div>
</template>
<script>
/**
*阶梯气价管理组件
*/
export default {
  data () {
    return {
    }
  },
  props: ['unitmodel']
}
</script>
